package com.summer.bilibili.transfer;

import com.summer.bilibili.consts.TransferMode;
import com.summer.bilibili.transfer.aliyun_oss.OssUtils;
import com.summer.bilibili.transfer.baidu_Transfer.CloudUtils;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;




@Component
@RequiredArgsConstructor
public class ResourceTransferProvider {
    private final CloudUtils cloudUtils;
    private final OssUtils ossUtils;

    public ResourceTransfer getResourceTransfer( TransferMode mode) {
        switch (mode) {
            case CLOUD:
                return cloudUtils;
            case OSS:
                return ossUtils;
            default:
                return null;
        }
    }
}
